
class CollectionCanTransferPageModel {
  List<CollectionCanTransferPageItem>? list;
  int? pageNum;
  int? pageSize;
  int? total;
  int? totalPage;

  CollectionCanTransferPageModel({this.list, this.pageNum, this.pageSize, this.total, this.totalPage});

  CollectionCanTransferPageModel.fromJson(Map<String, dynamic> json) {
    list = json["list"] == null ? null : (json["list"] as List).map((e) => CollectionCanTransferPageItem.fromJson(e)).toList();
    pageNum = json["pageNum"];
    pageSize = json["pageSize"];
    total = json["total"];
    totalPage = json["totalPage"];
  }

  static List<CollectionCanTransferPageModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(CollectionCanTransferPageModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    if(list != null) {
      _data["list"] = list?.map((e) => e.toJson()).toList();
    }
    _data["pageNum"] = pageNum;
    _data["pageSize"] = pageSize;
    _data["total"] = total;
    _data["totalPage"] = totalPage;
    return _data;
  }
}

class CollectionCanTransferPageItem {
  String? buyPrice;
  String? chainStatus;
  int? id;
  String? tokenId;
  bool isSelect  = false;

  CollectionCanTransferPageItem({this.buyPrice, this.chainStatus, this.id, this.tokenId,this.isSelect=false});

  CollectionCanTransferPageItem.fromJson(Map<String, dynamic> json) {
    buyPrice = json["buyPrice"];
    chainStatus = json["chainStatus"];
    id = json["id"];
    tokenId = json["tokenId"];
      isSelect = json["isSelect"] ??false;
  }

  static List<CollectionCanTransferPageItem> fromList(List<Map<String, dynamic>> list) {
    return list.map(CollectionCanTransferPageItem.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["buyPrice"] = buyPrice;
    _data["chainStatus"] = chainStatus;
    _data["id"] = id;
    _data["tokenId"] = tokenId;
      _data["isSelect"] = isSelect;
    return _data;
  }
}